﻿namespace CommonUtils
{
    public static class ObjectUtil
    {
        public static bool Equals<T>(this T value, params T[] compares)
        {
            if (value == null)
                return false;
            foreach (var compare in compares)
                if (value.Equals(compare))
                    return true;
            return false;
        }
    }
}
